package com.heima.model.admin.dtos;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class SensitivePageDto {
    private String name;
    private Integer page;
    private Integer size;
    public void jiancha(){
        if(page<1||page>100){
            page=1;
        }
        if(size<1||size>100){
            size=10;
        }
    }
}
